﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using VSSTQH.Models;

namespace VSSTQH.DataAccess
{
    public interface IPODAO : IBaseDataAccess<POModel>
    {
        IList<POModel> GetBy(decimal inbound, int potype);
        IList<POModel> GetBy(decimal inbound, int potype, bool isHas2ScaleTimes);
        IList<ProductModel> GetProducts();
        IList<VendorModel> GetVendors();
        IList<POModel> Search(DateTime fromDate, DateTime toDate, string vendorID, string productID, int poType, string vehicleID, string poID);
        IList<POModel> SortSearch(DateTime fromDate, DateTime toDate, int poType, int i);

        [Category("Save")]
        bool Save(POModel item, ref bool isNew); 
    }
}
